package org.smile.homework02.arthas.oneCase;

public class Application {
    public static void main(String[] args) {
        //1.生成停车场
        ParkingLot parkingLot = new ParkingLot(15);

        //time
        Integer time = 0;
        //2.生成车

        //3.0运营停车场
        while (true) {
            //time
            time++;
            Vehicle vehicle = new Vehicle();
            vehicle.describe();
            vehicle.enterParkingLot(parkingLot, time);
            //3.1给车提供服务
            parkingLot.runBusiness(time);
            parkingLot.describe();
        }
    }
}
